<template>
  <div class="not-found">
    <h1>404</h1>
    <p>页面未找到！</p>
    <NuxtLink to="/" class="home-link">返回首页</NuxtLink>
  </div>
</template>

<style scoped>
.not-found {
  text-align: center;
  margin: 40px auto;
  padding: 20px;
  max-width: 600px;
  background-color: #ffe6e6;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 72px;
  color: #ff4d4d;
  margin-bottom: 20px;
}

p {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
}

.home-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.home-link:hover {
  background-color: #0056b3;
}
</style>
